var vn =  new Vue({
		el:"#app2",
		data:{
			lusername:'',
			lpassword:'',
			lphone:'',
			lurl:'index.html'
		},
		methods:{
			
			register: function(){
				var _this = this;
				console.log("username="+_this.lusername+"&password="+_this.lpassword+"&phone="+_this.lphone)
				
				$.ajax({
					type: "POST",
		             url: ___Path + "/user/register.json?username="+_this.lusername+"&password="+_this.lpassword+"&phone="+_this.lphone,
		             data: null,
		             contentType: "application/json",
		             dataType: "json",
					success: function(result){
						if(result.data.username == null || result.data.username ==''){
							alert(result.msg.msgText);
						}else{
							alert(result.msg.msgText);
							location.reload();
						}
					},
					error: function(){
						alert("连接错误");
					}
				});
				
				return false;
			}
		}
});